<%-- 
    Document   : nameView
    Created on : 04/04/2011, 00:06:39
    Author     : Moraes
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Escola de Música</title>
    </head>
    <body>
        <h1>:: Home</h1>

        <h3>Menu</h3>
        <ul>
            <li><a href="teacher.html">Professor</a></li>
            <li><a href="discipline.html">Aula</a></li>
        </ul>

        <table style="border: solid 1px gray; border-collapse: separate;">
            <caption>Professores</caption>
            <thead style="background-color: #eee;">
                <tr>
                    <td>Id</td>
                    <td>Nome</td>
                </tr>
            </thead>
            <c:forEach items="${teacherList}" var="teacher" varStatus="Teacher">
                <tr>
                    <td>${teacher.getIdTeacher()}</td>
                    <td><a href="teacher.html?id=${teacher.getIdTeacher()}">${teacher.getNmTeacher()}</a></td>
                </tr>
            </c:forEach>
        </table>

        <table style="border: solid 1px gray; border-collapse: separate;">
            <caption>Aulas</caption>
            <thead style="background-color: #eee;">
                <tr>
                    <td>Id</td>
                    <td>Aula</td>
                </tr>
            </thead>
            <c:forEach items="${disciplineList}" var="discipline" varStatus="Discipline">
                <tr>
                    <td>${discipline.getIdDiscipline()}</td>
                    <td><a href="discipline.html?id=${discipline.getIdDiscipline()}">${discipline.getNmDiscipline()}</a></td>
                </tr>
            </c:forEach>
        </table>
    </body>
</html>
